package com.ym.jetpackhilt.di

import com.ym.jetpackhilt.bean.Dog
import com.ym.jetpackhilt.bean.User
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import javax.inject.Singleton


@Module
@InstallIn(ActivityComponent::class)
class UserModule {
//
    @Provides
    @Singleton
    fun provideString(): String = "chen0000000"



    @Provides
    fun provideDog(us: String): Dog = Dog(us)

    @Provides
    fun provideUser(us: String): User = User(us)
}